document.observe("dom:loaded", function(e) {
    // hide the edit form
    $('content-form').hide();
        
    // listen to toggle edit/show button, if clicked show the hidden element and hide the shown element     
    $('toggle-read-edit').observe('click', function(e) {
        if ($('content-form').visible() && !$('content-main').visible()) {
            $('content-form').hide();
            $('content-main').show();
        }
        else
        {
            $('content-form').show();
            $('content-main').hide();
        }
    });
});
